﻿package{
	
	import flash.display.Sprite;
	import flash.display.MovieClip;
	
	import caurina.transitions.Tweener;
	import caurina.transitions.properties.CurveModifiers;
	public class Start extends Sprite{
		public function Start():void
		{
			init();
			
			CurveModifiers.init();
		}
		private function init():void
		{
			// 일반 트윈
			//	Tweener.addTween(mc, {x:10, y:10, time:1, transition:"easeOutQuint"});
			
			// Frame
			//Tweener.addTween(mc, {_frame:10, time:2.5});

			// 딜레이
			//Tweener.addTween(mc,{x:100,y:0,time:1,delay:1,transition:'easeOutQuint'});
			
			// 베지어
			// http://labs.zeh.com.br/blog/?p=104
			Tweener.addTween(mc, {x:10, y:10, _bezier:{x:500, y:500}, time:1, transition:"easeoutquad"});
			
			// 색깔
			//Tweener.addTween(mc, {_color:0xff221e, time:1});
			//Tweener.addTween(mc, {_color_ra:100, _color_rb:0, time:1});
			
			// Color  reset
			//Tweener.addTween(mc, {_color:null, time:1});
			
			// Sound
			//Tweener.addTween(mySoundObject, {_sound_volume:100, time:1});
			
			// 함수 콜
			// onStart, onUpdate, onComplete
			//Tweener.addTween(mc, {x:10, y:10, time:1, transition:"easeOutQuint", onComplete:comp});
		}
		private function comp():void
		{
			trace('dsa');
		}
		// 속도비교
		//http://blog.greensock.com/bezier-speed-test/
	}
}